package com.comac.print.component.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.comac.print.component.app.domain.PrintMasterplate;
import com.comac.print.component.app.domain.dto.PrintMasterplateSearchDTO;
import com.comac.print.component.app.page.PageResponse;

import java.util.List;

/**
 * <p>
 * 模板维护表 服务类
 * </p>
 *
 * @author zhoubin
 * @since 2025-04-16 03:51:14
 */
public interface PrintMasterplateService extends IService<PrintMasterplate> {

    /**
     * 分页查询模板维护表
     * @param searchDTO
     * @return
     */
    PageResponse<PrintMasterplate> searchPage(PrintMasterplateSearchDTO searchDTO);


    /**
     * 新增模板，需要校验systemId + bussinessId是否已经存在
     * @param entity PrintMasterplate
     * @return
     */
    boolean addPrintMasterplate(PrintMasterplate entity);


    /**
     * 选择一个模板升版，需要传systemId + bussinessId，以及id
     *
     * @param entity PrintMasterplate
     * @return
     */
    boolean upgradePrintMasterplate(PrintMasterplate entity);

    /**
     * 查询历史版本，需要传systemId + bussinessId
     *
     * @param entity PrintMasterplate
     * @return
     */
    List<PrintMasterplate> getHistoryPrintMasterplate(PrintMasterplate entity);



}
